const gulp = require('gulp');
const babel = require('gulp-babel');
gulp.task('default',()=>
	gulp.src('src/*.js')
	.pipe(babel({presets:['es2015']}))
	.pipe(gulp.dest('babel_output'))
);

gulp.task('watch',()=>{
	gulp.watch('src/*.js',['default']).on('change',(event)=>{
		console.log('File ' + event.path + ' was ' + event.type + ', running tasks...');
	})
})